import request from '@/utils/request'

// 分组管理 

// *获取初始数据
export function getClass(params) {
    return request({
        url: '/prod/prodTag/page',
        method: 'get',
        params,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}
// 查询
export function selectClass(params){
    return request({
        url: '/prod/prodTag/page',
        method: 'get',
        params,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}
// 添加
export function addTeam(params){
    return request({
        url:'/prod/prodTag',
        method: 'post',
        headers: {
            'authorization': localStorage.getItem('token')
        },
        data: params
    })
}
// 删除
export function deleteTeam(params,id){
    return request({
        url: '/prod/prodTag/'+id,
        method: 'DELETE',
        headers: {
            'authorization': localStorage.getItem('token')
        },
        data: params,
    })
}
// 修改
export function editTeam(params){
    return request({
        url: '/prod/prodTag',
        method: 'put',
        headers: {
            'authorization': localStorage.getItem('token')
        },
        data: params,
    })
}

// *规格管理